package com.cash.app.utils.extra.model

import com.google.gson.annotations.SerializedName
import com.cash.app.utils.extra.ExtraInfoUtils
import com.cash.app.utils.extra.tools.OtherUtils

class OtherData {
    @SerializedName("hi_root_jailbreak")
    var root_jailbreak: Int = OtherUtils.isAppRoot

    @SerializedName("hi_simulator")
    var simulator: Int = OtherUtils.isEmulator

    var keyboard: Int = OtherUtils.checkDeviceHasNavigationBar()

    var ringer_mode: Int = OtherUtils.phoneMode

    @SerializedName("hi_dbm")
    var dbm: String = ExtraInfoUtils.dbm.toString() + "" //getMobileDbm();

    @SerializedName("hi_last_boot_time")
    var last_boot_time: Long = OtherUtils.bootTime

    @SerializedName("hi_http_proxy_host_port")
    var http_proxy_host_port: String = OtherUtils.hostAndPort

    @SerializedName("hi_vpn_address")
    var vpn_address: String = OtherUtils.proxyAddress

    @SerializedName("hi_is_using_proxy_port")
    var is_using_proxy_port: Int = OtherUtils.isWifiProxy

    @SerializedName("hi_is_using_vpn")
    var is_using_vpn: Int = OtherUtils.checkVPN()

    @SerializedName("hi_is_usb_debug")
    var is_usb_debug: Int = OtherUtils.isAppDebug

    @SerializedName("hi_is_mock_location")
    var is_mock_location: Int = OtherUtils.isMockLocation

    @SerializedName("hi_is_airplane_mode")
    var is_airplane_mode: Int = OtherUtils.isAirplaneModeOn

    override fun toString(): String {
        return "OtherData(" +
                "root_jailbreak=$root_jailbreak, " +
                "simulator=$simulator, " +
                "keyboard=$keyboard, " +
                "ringer_mode=$ringer_mode, " +
                "dbm='$dbm', " +
                "last_boot_time=$last_boot_time, " +
                "http_proxy_host_port='$http_proxy_host_port', " +
                "vpn_address='$vpn_address', " +
                "is_using_proxy_port=$is_using_proxy_port, " +
                "is_using_vpn=$is_using_vpn, " +
                "is_usb_debug=$is_usb_debug, " +
                "is_mock_location=$is_mock_location, " +
                "is_airplane_mode=$is_airplane_mode" +
                ")"
    }
}
